package com.bike.bikeserver.controller.backend;

import com.bike.bikeserver.common.core.domain.CommonResult;
import com.bike.bikeserver.service.IModelTestLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author ZZX
 * @since 2023-08-07
 */
@RestController
@RequestMapping("back/modelTestLog")
public class BackModelTestLogController
{
    @Autowired
    IModelTestLogService modelTestLogService;

    /**
     * 获取所有模型测试记录
     *
     * @return
     */
    @GetMapping("getLogList")
    public CommonResult getLogList()
    {
        return modelTestLogService.getLogList();
    }


    /**
     * 根据测试者姓名模糊查找模型测试记录
     *
     * @param tester
     * @return
     */
    @GetMapping("getLogListLikeTester")
    public CommonResult getLogListLikePerson(@RequestParam("tester") String tester)
    {
        return modelTestLogService.getLogListLikePerson(tester);
    }
}

